import service from '@/utils/request'

export const useCarApi = (id: number) => {
	return service.get('/nb/car/findById' ,{
		params:{
			id:id
		}} )
}

export const useCarSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/car/edit', dataForm)
	} else {
		return service.post('/nb/car/add', dataForm)
	}
}